#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int Strlen(const char*p1)
{
	int count = 0;
	while (*p1)
	{
		count++;
		p1++;
	}
	return count;
}
int main()
{
	char arr[30] = { 0 };
	scanf("%[^\n]s", arr);
	int len = Strlen(arr);
	printf("%d", len);
	return 0;
}